﻿using Starcraft.ArmyFactory;
using Starcraft.BaseSoldier;
using System;
using System.Collections.Generic;
using System.Text;

namespace Starcraft.SpecificEthnic
{
    public class Terran : BaseRace
    {
        private IArmyFactory armyFactory;
        public Terran(IArmyFactory armyFactory)
        {
            this.armyFactory = armyFactory;
        }
        public override void GoGoGo()
        {
            Console.WriteLine($"{nameof(Terran)} 人族  TVT工厂的士兵");
            //创建士兵
            AirUnit = armyFactory.CreateAirUnit();
            AttackUnit = armyFactory.CreateAttackUnit();
            MedicalUnit = armyFactory.CreateMedicalUnit();
            Console.WriteLine(AirUnit.Name);
            AirUnit.Assist();
            Console.WriteLine(AttackUnit.Name);
            AttackUnit.Attack();
            Console.WriteLine(MedicalUnit.Name);
            MedicalUnit.Cure();
        }
    }
}
